<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>鲜知校园-个人中心</title>
    <link rel="stylesheet" href="/static/front/common/css/reset.css" />
    <link rel="stylesheet" href="/static/front/css/common.css" />
    <link rel="stylesheet" href="/static/front/css/user.css" />
    <script src="/static/front/common/js/jquery-1.12.4.min.js"></script>
    <style>
        .userInfo_img img {
            width: 21vw;
            height: 21vw;
            border-radius: 20px;
        }
    </style>
</head>

<body>
    <div class="container">
       <div class="container_header">
        <div class="userInfo">
            <div class="userInfo_img">
                <img src="{{.loginUser.HeadImgUrl}}">
            </div>
            <div class="userInfo_content">
                <p class="name">{{.loginUser.SchoolName}}</p>
                <p class="phone">{{.loginUser.PhoneShow}}</p>
            </div>
        </div>
       </div>
       <ul>
            <li>
                <a href="{{urlfor "controllers.OrderController.Index"}}">
                    <img src="/static/front/img/user_icon1.png" alt="">
                    <div class="title">购买记录</div>
                </a>
            </li>
            <li>
                <a href="{{urlfor "controllers.OrderSchoolController.SelectedHistory"}}">
                    <img src="/static/front/img/user_icon2.png" alt="">
                    <div class="title">勾选历史</div>
                </a>
            </li>
        </ul>
    </div>
    <div class="loginOut">
       退出登录
    </div>
    <div class="back">
        <img src="/static/front/img/back.png" alt="">
    </div>
</body>

<script type="text/javascript">

    $(function () {

        $('.loginOut').click(function () {
            location.href = '{{urlfor "controllers.UserController.Logout"}}';
        });

        $('.back').click(function () {
            location.href = '{{urlfor "controllers.IndexController.Index"}}';
        });

    });

</script>

</html>